/**
 * 
 */
package org.ucn.dmaa0914.gruppe6;

/**
 * @author Kim
 *
 */
public class OrderSearchFilter implements SearchFilter<Order> {

	@Override
	public boolean isCandidate(Order object, String searchData) {
		return object.getCustomer() == CustomerCtr.getInstance().getCurrentCustomer() && OrderCtr.getInstance().format(object.getId()).contains(searchData);
	}

}
